<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">编辑客户单位</h1>
</div>
<div class="wrapper-sm" >
	<uib-tabset active="1" class="tab-container" ng-init="steps={percent:20}">
		<uib-tab heading="基本信息" index="1"  >
			<uib-progressbar value="20" class="progress-xs" type="success"></uib-progressbar>
			<form id="clientEditForm" name="step1" class="form-validation form-horizontal" novalidate  ng-controller="clientManagentEditController">
				<div class="form-group">
					<label class="col-lg-2 control-label">客户单位<span class="text-danger">*</span></label>
					<div class="col-lg-4">
						<input id="client_name" type="text" class="form-control input-sm" ng-model="name" required placeholder="请填写客户单位名称" name="name">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">客服专员<span class="text-danger">*</span></label>
					<div class="col-lg-2"> 
						<select id="client_serviceOfficer" class="form-control input-sm" ng-model="serviceOfficer.id" ng-options="x.id as x.realName for x in serviceOfficerIdDropDown"
							name="clientServiceOfficerId" required>
                            <option value="">请选择</option>
                        </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">商务专员<span class="text-danger">*</span></label>
					<div class="col-lg-2">
						<select id="client_businessOfficer" class="form-control input-sm" ng-model="businessOfficer.id" ng-options="x.id as x.realName for x in businessOfficerDropDown"
							name="businessOfficerId" required>
                            <option value="">请选择</option>
                        </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">客户地址<span class="text-danger">*</span></label>
					<tms-address  class="col-lg-6"
						province="provinceCode"
						city="cityCode" 
						area="areaCode"
						city-list="CityList" 
						area-list="AreaList"
						required="true"
						ischecked="true"
					>
					</tms-address>

					<!--<div class="col-lg-6">
						<ng-area city-list="cityList" area-list="areaList" province="province" city="city" area="area"></ng-area>
					</div>-->

				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">详细地址<span class="text-danger">*</span></label>
					<div class="col-lg-4">
						<input id="client_address" type="text" class="form-control input-sm" ng-model="address" placeholder="请填写详细地址" name="address" required>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">手机号码<span class="text-danger">*</span></label>
					<div class="col-lg-4">
							<!-- ng-pattern="/^1\d{10}$/"  -->
						<input id="client_phoneNumber" type="tel" class="form-control input-sm" ng-model="phoneNumber" placeholder="请填写手机号" name="phoneNumber" ng-pattern="/^1\d{10}$/"
							required>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">管理员账号<span class="text-danger">*</span></label>
					<div class="col-lg-4">
						<input id="client_adminUserName" type="text" class="form-control input-sm" ng-model="adminUserName" disabled="disabled" placeholder="请填写管理员账号" required
							name="adminUserName">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">管理员密码<span class="text-danger">*</span></label>
					<div class="col-lg-4">
						<input id="client_adminPassword" type="password" class="form-control input-sm" ng-minlength="6" ng-model="adminPassword" placeholder="请填写管理员密码" name="adminPassword">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">重复管理员密码<span class="text-danger">*</span></label>
					<div class="col-lg-4">
						<input id="client_reAdminPassword" type="password" class="form-control input-sm" ng-minlength="6" ng-model="reAdminPassword" placeholder="请再次填写管理员密码"
							name="reAdminPassword" ui-validate=" '$value==adminPassword' " ui-validate-watch=" 'adminPassword' " ng-change="step1.reAdminPassword.$valid ? (steps.percent=20) : (steps.percent=15)">
						<span class="text-danger m-l-sm" ng-show='step1.reAdminPassword.$error.validator'>密码不匹配！</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">客户类型<span class="text-danger"></span></label>
					<div class="col-lg-2"> 
						<select id="client_type" class="form-control input-sm" ng-model="clientType" ng-options="x.value as x.text for x in clientTypeList"
							name="clientTypeId" >
                            <option value="">请选择</option>
                        </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">产品</label>
					<div class="col-lg-4">
						<textarea class="form-control input-sm" ng-model="products" placeholder="请填写产品以逗号隔开" name="products"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">产品包装方式</label>
					<div class="col-lg-4">
						<input id="client_productPack" type="text" class="form-control input-sm" ng-model="productPack" placeholder="请填写产品包装方式" name="productPack">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">付款方式</label>
					<div class="col-lg-4">
						<input id="client_paidWay" type="text" class="form-control input-sm" ng-model="paidWay" placeholder="请填写付款方式" name="paidWay">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-2 control-label">备注</label>
					<div class="col-lg-4">
						<textarea class="form-control input-sm" ng-model="remarks" placeholder="请填写备注" name="remarks"></textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="m-t m-b col-lg-4">
							<!-- ui-sref="app.client.client_Managent" -->
						<button id="client_back" class="btn btn-sm btn-default btn-rounded pull-right m-l-sm" ng-click="backUrl()">返回</button>
						<button id="client_save" class="btn btn-sm btn-default btn-rounded pull-right" ng-disabled="step1.$invalid" ng-click="click()">保存</button>
					</div>
				</div>
			</form>
		</uib-tab>
		<uib-tab heading="客户代表"  select="steps.percent=35" ui-sref="app.client.customerrepresentative_manage"></uib-tab>
		<uib-tab heading="货物分类"  select="steps.percent=45" ui-sref="app.client.goodstype_manage"></uib-tab>
		<uib-tab heading="货物"  select="steps.percent=55" ui-sref="app.client.goods_manage"></uib-tab>
		<uib-tab heading="结算方"  select="steps.percent=65" ui-sref="app.client.settleManagent"></uib-tab>
		<uib-tab heading="线路报价"  select="steps.percent=75" ui-sref="app.client.lineprice_manage"></uib-tab>
		<uib-tab heading="工程"  select="steps.percent=85" ui-sref="app.client.projectManagent"></uib-tab>
		<uib-tab heading="客户资料"  select="steps.percent=100" ui-sref="app.client.clientinfo_manage"></uib-tab>
		<uib-tab heading="对账回款周期" select="steps.percent=100" ui-sref="app.client.returnPeriod"></uib-tab>
	</uib-tabset>
</div>


